﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace Shlook.Common
{
    [DataContract]
    public class ChatFault
    {
        public static FaultException<ChatFault> Create(string error)
        {
            return new FaultException<ChatFault>(new ChatFault { Error = error });
        }

        [DataMember]
        public string Error { get; set; }

        public override string ToString()
        {
            return Error;
        }
    }

    [DataContract]
    public class User
    {
        [DataMember]
        public string Id { get; set; }

        [DataMember]
        public string DisplayName { get; set; }

        [DataMember]
        public string Status { get; set; }

        [DataMember]
        public string URL { get; set; }
    }

    [DataContract]
    public class ChatMessage
    {
        [DataMember]
        public string FromUser { get; set; }

        [DataMember]
        public string ToUser { get; set; }

        [DataMember]
        public string Message { get; set; }
    }
}
